package com.carey.blog.action;

/**
 * This enumeration defines all response status codes of actions.
 * 
 */
public enum StatusCodes {

	/**
	 * Indicates add an article successfully.
	 */
	ADD_ARTICLE_SUCC,
	/**
	 * Indicates add an article fails, caused by duplicated permalink.
	 */
	ADD_ARTICLE_FAIL_DUPLICATED_PERMALINK,
	/**
	 * Indicates get articles successfully.
	 */
	GET_ARTICLES_SUCC,
	/**
	 * Indicates get an article successfully.
	 */
	GET_ARTICLE_SUCC,
	/**
	 * Indicates remove an article successfully.
	 */
	REMOVE_ARTICLE_SUCC,
	/**
	 * Indicates remove an article fails caused by forbidden.
	 */
	REMOVE_ARTICLE_FAIL_FORBIDDEN,
	/**
	 * Indicates put top an article successfully.
	 */
	PUT_TOP_ARTICLE_SUCC,
	/**
	 * Indicates put top an article fails.
	 */
	PUT_TOP_ARTICLE_FAIL_,
	/**
	 * Indicates put top an article fails caused by forbidden.
	 */
	PUT_TOP_ARTICLE_FAIL_FORBIDDEN,
	/**
	 * Indicates cancel top an article successfully.
	 */
	CANCEL_TOP_ARTICLE_SUCC,
	/**
	 * Indicates cancel top an article fails.
	 */
	CANCEL_TOP_ARTICLE_FAIL_,
	/**
	 * Indicates cancel top an article fails caused by forbidden.
	 */
	CANCEL_TOP_ARTICLE_FAIL_FORBIDDEN,
	/**
	 * Indicates update an article successfully.
	 */
	UPDATE_ARTICLE_SUCC,
	/**
	 * Indicates update an article fails, caused by duplicated permalink.
	 */
	UPDATE_ARTICLE_FAIL_DUPLICATED_PERMALINK,
	/**
	 * Indicates update an article fails caused by forbidden.
	 */
	UPDATE_ARTICLE_FAIL_FORBIDDEN,
	/**
	 * Indicates comment an article successfully.
	 */
	COMMENT_ARTICLE_SUCC,
	/**
	 * Indicates comment a page successfully.
	 */
	COMMENT_PAGE_SUCC,
	/**
	 * Indicates get comments successfully.
	 */
	GET_COMMENTS_SUCC,
	/**
	 * Indicates remove a comment successfully.
	 */
	REMOVE_COMMENT_SUCC,
	/**
	 * Indicates remove a comment fails caused by forbidden.
	 */
	REMOVE_COMMENT_FAIL_FORBIDDEN,
	/**
	 * Indicates add a link successfully.
	 */
	ADD_LINK_SUCC,
	/**
	 * Indicates remove a link successfully.
	 */
	REMOVE_LINK_SUCC,
	/**
	 * Indicates remove a link fails.
	 */
	REMOVE_LINK_FAIL_,
	/**
	 * Indicates update a link successfully.
	 */
	UPDATE_LINK_SUCC,
	/**
	 * Indicates update a link fails.
	 */
	UPDATE_LINK_FAIL_,
	/**
	 * Indicates get a link successfully.
	 */
	GET_LINK_SUCC,
	/**
	 * Indicates get links successfully.
	 */
	GET_LINKS_SUCC,
	/**
	 * Indicates update preference successfully.
	 */
	UPDATE_PREFERENCE_SUCC,
	/**
	 * Indicates update preference fails.
	 */
	UPDATE_PREFERENCE_FAIL_,
	/**
	 * Indicates update preference fails, caused by cannot set blog host as
	 * "localhost" on production.
	 */
	UPDATE_PREFERENCE_FAIL_CANNT_BE_LOCALHOST,
	/**
	 * Indicates update preference fails, caused by needing multiple users.
	 */
	UPDATE_PREFERENCE_FAIL_NEED_MUL_USERS,

	/**
	 * Indicates get preference successfully.
	 */
	GET_PREFERENCE_SUCC,
	/**
	 * Indicates set blog sync management successfully.
	 */
	SET_BLOG_SYNC_MGMT_SUCC,
	/**
	 * Indicates captcha error.
	 */
	CAPTCHA_ERROR,
	/**
	 * Indicates add a page successfully.
	 */
	ADD_PAGE_SUCC,
	/**
	 * Indicates add a page fails, caused by duplicated permalink.
	 */
	ADD_PAGE_FAIL_DUPLICATED_PERMALINK,
	/**
	 * Indicates remove a page successfully.
	 */
	REMOVE_PAGE_SUCC,
	/**
	 * Indicates update a page successfully.
	 */
	UPDATE_PAGE_SUCC,
	/**
	 * Indicates get a page successfully.
	 */
	GET_PAGE_SUCC,
	/**
	 * Indicates update a page fails, caused by duplicated permalink.
	 */
	UPDATE_PAGE_FAIL_DUPLICATED_PERMALINK,
	/**
	 * Indicates get pages successfully.
	 */
	GET_PAGES_SUCC,
	/**
	 * Indicates remove unused tags successfully.
	 */
	REMOVE_UNUSED_TAGS_SUCC,
	/**
	 * Indicates remove unused tags fails.
	 */
	REMOVE_UNUSED_TAGS_FAIL_,
	/**
	 * Indicates get files successfully.
	 */
	GET_FILES_SUCC,
	/**
	 * Indicates upload a file successfully.
	 */
	UPLOAD_FILES_SUCC,
	/**
	 * Indicates remove a file successfully.
	 */
	REMOVE_FILE_SUCC,
	/**
	 * Indicates update a file successfully.
	 */
	UPDATE_FILE_SUCC,
	/**
	 * Indicates initializes Carey Blog successfully.
	 */
	INIT_CAREY_BLOG_SUCC,
	/**
	 * Indicates cancels a published article successfully.
	 */
	CANCEL_PUBLISH_ARTICLE_SUCC,
	/**
	 * Indicates cancels a published article fails.
	 */
	CANCEL_PUBLISH_ARTICLE_FAIL_,
	/**
	 * Indicates cancels a published article fails caused by forbidden.
	 */
	CANCEL_PUBLISH_ARTICLE_FAIL_FORBIDDEN,
	/**
	 * Indicates adds a user successfully.
	 */
	ADD_USER_SUCC,
	/**
	 * Indicates adds a user fails, caused by duplicated user email.
	 */
	ADD_USER_FAIL_DUPLICATED_EMAIL,
	/**
	 * Indicates removes a user successfully.
	 */
	REMOVE_USER_SUCC,
	/**
	 * Indicates removes a user fails, caused by the current skin need multiple
	 * users.
	 */
	REMOVE_USER_FAIL_SKIN_NEED_MUL_USERS,
	/**
	 * Indicates updates a user successfully.
	 */
	UPDATE_USER_SUCC,
	/**
	 * Indicates updates a user fails.
	 */
	UPDATE_USER_FAIL_,
	/**
	 * Indicates get users successfully.
	 */
	GET_USERS_SUCC,
	/**
	 * Indicates get user successfully.
	 */
	GET_USER_SUCC,
}
